<?php
session_start();
if(isset($_SESSION['userid']) && $_SESSION['level']!=2)
{
	header("location:login.php"); 
exit();
}

?>
<?php
include("includes/connect.php");
$id=$_GET['typeid'];
$sql = "delete from type_category where maloai='".$id."'";
mysql_query($sql);
header("location:main_manager.php");
?>